package cn.com.ibjj.u10010;

/**
 * var numberDecompress = {};
 * numberDecompress.NumID = dataCompress[i]+"";
 * numberDecompress.NumPreFee = (dataCompress[i+1] * 100)+"";
 * numberDecompress.NumMemo = numMemoList[dataCompress[i+2]];
 * numberDecompress.NumLevel = dataCompress[i+3]+"";
 * numberDecompress.City = dataCompress[i+4]+"";
 * numberDecompress.NiceRuleTag = dataCompress[i+5]+"";
 * numberDecompress.numMonFeeLimit = dataCompress[i+6]+"";
 * numberDecompress.numMonLimit = dataCompress[i+7]+"";
 * incData.push(numberDecompress);
 */
public class NumberDecompress implements Comparable<NumberDecompress> {
    protected String NumID;
    protected String NumPreFee;
    protected String NumMemo;
    protected String NumLevel;
    protected String City;
    protected String NiceRuleTag;
    protected String numMonFeeLimit;
    protected String numMonLimit;


    @Override
    public String toString() {
        return "NumberDecompress{" +
                "NumID='" + getNumID() + '\'' +
                ", NumPreFee='" + getNumPreFee() + '\'' +
                ", NumMemo='" + getNumMemo() + '\'' +
                ", NumLevel='" + getNumLevel() + '\'' +
                ", City='" + getCity() + '\'' +
                ", NiceRuleTag='" + getNiceRuleTag() + '\'' +
                ", numMonFeeLimit='" + getNumMonFeeLimit() + '\'' +
                ", numMonLimit='" + getNumMonLimit() + '\'' +
                '}';
    }

    public String getCsvString() {
        StringBuffer sb = new StringBuffer();
        sb.append("'").append(getNumID()).append("\t")
                .append(getNumPreFee()).append("\t")
                .append(getNumMemo()).append("\t")
                .append(getNumLevel()).append("\t")
                .append(getCity()).append("\t")
                .append(getNiceRuleTag()).append("\t")
                .append(getNumMonFeeLimit()).append("\t")
                .append(getNumMonLimit()).append("\t");
        return sb.toString();
    }

    public String getTitleString() {
        return "NumID" + "\t" + "NumPreFee" + "\t" + "NumMemo" + "\t" + "NumLevel" + "\t" + "City" + "\t" + "NiceRuleTag" + "\t" + "NumMonFeeLimit" + "\t" + "NumMonLimit";
    }

    public String getNumID() {
        return NumID;
    }

    public void setNumID(String numID) {
        NumID = numID;
    }

    public String getNumPreFee() {
        return NumPreFee;
    }

    public void setNumPreFee(String numPreFee) {
        NumPreFee = numPreFee;
    }

    public String getNumMemo() {
        return NumMemo;
    }

    public void setNumMemo(String numMemo) {
        NumMemo = numMemo;
    }

    public String getNumLevel() {
        return NumLevel;
    }

    public void setNumLevel(String numLevel) {
        NumLevel = numLevel;
    }

    public String getCity() {
        return City;
    }

    public void setCity(String city) {
        City = city;
    }

    public String getNiceRuleTag() {
        return NiceRuleTag;
    }

    public void setNiceRuleTag(String niceRuleTag) {
        NiceRuleTag = niceRuleTag;
    }

    public String getNumMonFeeLimit() {
        return numMonFeeLimit;
    }

    public void setNumMonFeeLimit(String numMonFeeLimit) {
        this.numMonFeeLimit = numMonFeeLimit;
    }

    public String getNumMonLimit() {
        return numMonLimit;
    }

    public void setNumMonLimit(String numMonLimit) {
        this.numMonLimit = numMonLimit;
    }

    @Override
    public int compareTo(NumberDecompress o) {
        return this.getNumID().compareTo(o.getNumID());
    }
}
